﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;

namespace BUS
{
    public class SanPhamThietKeBUS
    {
        public List<shop_sanphamthietke> LayTatCaSanPhamThietKe()
        {
            SanPhamThietKeDAO dao = new SanPhamThietKeDAO();
            return dao.LayTatCaSanPhamThietKe();
        }
        public void ThemSanPhamThietKe(shop_sanphamthietke addObject)
        {
            SanPhamThietKeDAO dao = new SanPhamThietKeDAO();
            dao.ThemSanPhamThietKe(addObject);
        }
        public void XoaSanPhamThietKe(int Ma)
        {
            SanPhamThietKeDAO dao = new SanPhamThietKeDAO();
            dao.XoaSanPhamThietKe(Ma);
        }
        public void CapNhatSanPhamThietKe(int Ma, shop_sanphamthietke editObject)
        {
            SanPhamThietKeDAO dao = new SanPhamThietKeDAO();
            dao.CapNhatSanPhamThietKe(Ma, editObject);
        }
    }
}
